package com.tanhua.model.vo;

import com.tanhua.model.db.Dimensions;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DimensionsVo implements Serializable {
    /*
     * key
     * */
    private String key;

    /*
     * value
     * */
    private String value;

    public static DimensionsVo inint(Dimensions dimensions){
        DimensionsVo vo = new DimensionsVo();
        vo.setKey(dimensions.getDimensionality());
        vo.setValue(dimensions.getDimensionalityValue());
        return vo;
    }
}
